from . import views

from django.conf.urls import url

urlpatterns = [
	url(r'^project/create$', views.ProjectsViewSet.as_view({'post': 'create_project'})),
	url(r'^project/list$', views.ProjectsViewSet.as_view({'get': 'list'})),
	url(r'^project/update$', views.ProjectsViewSet.as_view({'post': 'update'})),
	url(r'^project/changeStatus$', views.ProjectsViewSet.as_view({'post': 'change_status'})),
	url(r'^project/delete$', views.ProjectsViewSet.as_view({'post': 'delete'})),
	url(r'^project/getById$', views.ProjectsViewSet.as_view({'get': 'get_project_info'})),
	url(r'^project/search$', views.ProjectsViewSet.as_view({'get': 'search_project'})),
	url(r'^dict/create$', views.SystemDictDataViewSet.as_view({'post': 'create'})),
	url(r'^dict/list$', views.SystemDictDataViewSet.as_view({'get': 'list'})),
	url(r'^dict/queryTypeList$', views.SystemDictDataViewSet.as_view({'get': 'query_dict_type_list'})),
	url(r'^dict/update$', views.SystemDictDataViewSet.as_view({'post': 'update'})),
	url(r'^dict/getById$', views.SystemDictDataViewSet.as_view({'get': 'get_By_id'})),
	url(r'^dict/delete$', views.SystemDictDataViewSet.as_view({'get': 'delete'})),
	url(r'^dict/changeStatus$', views.SystemDictDataViewSet.as_view({'post': 'change_status'})),
	url(r'^api/create$', views.ApisViewSet.as_view({'post': 'create_api'})),
	url(r'^api/list$', views.ApisViewSet.as_view({'get': 'list'})),
	url(r'^api/delete$', views.ApisViewSet.as_view({'post': 'delete'})),
	url(r'^api/update$', views.ApisViewSet.as_view({'post': 'update'})),
	url(r'^api/queryApiInfo$', views.ApisViewSet.as_view({'get': 'get_api_info'})),
	url(r'^api/search$', views.ApisViewSet.as_view({'get': 'search'})),
	url(r'^api/changeStatus$', views.ApisViewSet.as_view({'get': 'change_status'})),
	url(r'^api/case/create$', views.CaseViewSet.as_view({'post': 'create'})),
	url(r'^api/case/list$', views.CaseViewSet.as_view({'get': 'list_or_by_api_id'})),
	url(r'^api/case/update$', views.CaseViewSet.as_view({'post': 'update'})),
	url(r'^api/case/delete$', views.CaseViewSet.as_view({'get': 'delete'})),
	url(r'^api/case/getById$', views.CaseViewSet.as_view({'get': 'get_by_id'})),
	url(r'^api/case/search$', views.CaseViewSet.as_view({'get': 'search'})),
	url(r'^api/case/changeStatus$', views.CaseViewSet.as_view({'post': 'change_status'})),
]
